﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Attendance.Model;

namespace EzDesk.Attendance.AttendanceImpl.Filters
{
    public static class LeaveTypeFilter
    {
        public static LeaveType ByLeaveTypeId(this IQueryable<LeaveType> query, Guid leaveTypeId)
        {
            return query.Where(p=>p.LeaveTypeId == leaveTypeId).SingleOrDefault();
        }
         
    }
}
